<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Tab Widget</title>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css">
<script src="../lib/jquery-2.1.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<script>
$(function(){
	$("#tabs").tabs({
		activate:function(event, ui){
			if(ui.newTab.index() == 4){
				$('#tabs-5').load('./event_toggle.jsp');
			}
			if(ui.newTab.index() == 5){
				$('#tabs-6').load('./event_animate.jsp');
			}
			if(ui.newTab.index() == 6){
				$('#tabs-7').load('./event_slide_menu.jsp');
			}
		}
	});
});
</script>

</head>
<body>

<div id="tabs">
	<ul>
		<li><a href="#tabs-1">HTML5 소개</a></li>
		<li><a href="#tabs-2">CSS3 소개</a></li>
		<li><a href="#tabs-3">JavaScript 소개</a></li>
		<li><a href="#tabs-4">jQuery 소개</a></li>
		<li><a href="#tabs-5">Toggle</a></li>
		<li><a href="#tabs-6">Animate</a></li>
		<li><a href="#tabs-7">SlideMenu</a></li>
	</ul>
	
	<div id="tabs-1">
		<ul>
			<li>웹 표준의 기본</li>
			<li>불라불라</li>
			<li>욜라욜라</li>
			<li>불라불라</li>
			<li>욜라욜라</li>
			<li>불라불라</li>
			<li>욜라욜라</li>
		</ul>
	</div>
	
	<div id="tabs-2">
		<ul>
			<li>1</li>
			<li>2</li>
			<li>3</li>
		</ul>
	</div>
	
	<div id="tabs-3">
		<ul>
			<li>4</li>
			<li>5</li>
			<li>6</li>
		</ul>
	</div>
	
	<div id="tabs-4">
		류우우우우지훈
	</div>
	
	<div id="tabs-5" style="height: 180px">
		
	</div>
	
	<div id="tabs-6">
		
	</div>
	
	<div id="tabs-7">
		
	</div>
</div>

</body>
</html>